package com.lwc.controller;

import com.lwc.bean.Dept;
import com.lwc.remote.DeptRemoteClient;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class DeptController implements DeptRemoteClient {


    @Override
    public Map savedept(Map map) {
        return map;
    }

    @Override
    public String SAVE(Dept dept) {
        if (dept!=null){
            return "保存成功";
        }else
            return "保存失败";

    }

    @Override
    public Dept querydept(int id) {
        return new Dept(20,"张三");
    }


}
